libxl: Do not trust backend in libxl__device_exists
authorIan Jackson <ian.jackson@eu.citrix.com>
Wed, 4 May 2016 14:04:35 +0000 (15:04 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Thu, 2 Jun 2016 14:53:29 +0000 (15:53 +0100)
commit696a1c5e8e59a16b6047df6936444842e6408521
tree1204dd2d6b297ef2efc0efad4335ca7763d7d1b9
parentdeffd3cc8add192005ceb30442c78ecb4c692d15
libxl: Do not trust backend in libxl__device_exists

To determine whether a device is supposed to exist, look in /libxl,
rather than the backend.

This is part of XSA-178.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Reviewed-by: Wei Liu <wei.liu2@citrix.com>
tools/libxl/libxl_device.c